package com.echo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 存储计划与具体日期关联的关联表
 * </p>
 *
 * @author echo
 * @since 2024-11-13
 */
@Data
@TableName("schedule_dates")
public class ScheduleDates implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识符
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 关联到的计划ID，外键指向schedule表
     */
    private String scheduleId;
    private String userId;
    /**
     * 计划的具体日期
     */
    private LocalDate date;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(String scheduleId) {
        this.scheduleId = scheduleId;
    }
    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "ScheduleDates{" +
            "id=" + id +
            ", scheduleId=" + scheduleId +
            ", date=" + date +
        "}";
    }
}
